package com.atguigu.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author He Wentao
 * @since 2022/10/4 13:35
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu"})
@EnableScheduling  // 开启定时任务
@MapperScan("com.atguigu.staservice.mapper")
@EnableDiscoveryClient  //nacos服务发现注解
@EnableFeignClients(basePackages = {"com.atguigu.staservice.service.client"}) // 开启OpenFeign功能，并设置接口扫描
public class StaApplication {
    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class,args);
    }

}
